import datetime

from sqlalchemy import Column, Integer, String, Float, DateTime, UniqueConstraint

from IntelligentDocumentReview.DbInit.mysqlDb import Base


class Messages(Base):
    __tablename__ = 'messages'
    id = Column(Integer, primary_key=True)
    orderId = Column(Integer)
    senderId = Column(Integer)
    senderName = Column(String(32))
    receiverId = Column(Integer)
    receiverName = Column(String(32))
    status = Column(Integer)
    createdAt = Column(DateTime, default=datetime.datetime.now)
    updatedAt = Column(DateTime, default=datetime.datetime.now)